<?php include "../../coresection/connection.php";?>
<?php include "../../coresection/checkSession.php";?>
<?php include "../../coresection/admin-product.php";?>
<?php include "../../coresection/order-list.php";?>
<?php include "detail-function.php";?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>邮政点餐系统</title>
    <link href="../../css/style.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" src="../../js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="../../js/basic.js"></script>
</head>

<body>

<div class="header">
    <h1>欢迎使用邮政订餐系统</h1>
    <div class="user_message">
        用户：<?php echo $department ?>　<?php echo $user_name ?>　日期：<?php echo $todayDate?> <?php echo $weekDate?>
    </div>
</div>

<div class="admin_left_area">
    <?include '../../model/slidebar.php'?>
</div>



<div id="container">
<!--Container端點01-->
<div id="maincontent">
<!--maincontent端點01-->

<div id="sidebar">
    <?php include '../modules/sidebar.php'; ?>
</div>


    <div id="content" class="main">
        <h1><? echo $sys_title ?></h1>


        <Style>
            .detail-boxing{ list-style: none; font-size: 14px;}
            .detail-boxing li{ border-bottom: solid 1px #cccccc}
        </Style>
<div class="detail-box">

<div class="detail-boxes">
<ul class="detail-boxing">
<form id="detail_detail_form" method="post" onsubmit="return checkRequired(detail_name);"  action="detail-edit-function.php?sys_part=<? echo $system_part ?>"
      enctype="multipart/form-data" name="uploadfile">




    <li class="nid"><label>编号：</label> <?php echo $detail_nid ?><input name="detail_nid" type="hidden"
                                                                         value="<?php echo $detail_nid ?>"/></li>


<li class="name">
    <label>名称：</label>
    <input type="text" name="detail_name" size="20" value="<? echo $detail_name ?>">
    <em class="explain">(<u style="color:red">*必填项目</u>, 填写标题)
    </em>
</li>

    <li class="nid">
        <label>价格：</label>
        <input type="text" name="detail_price" size="20" value="<? echo $detail_price ?>">
    </li>




<li class="at">
    <label>时段：</label>
    <select name="detail_at">
        <option value="1" <?if($detail_at=='1') {$selection="selected='selected'";}?> <? echo $selection ?> >早餐</option>
        <option value="2" <?if($detail_at=='2') {$selection2="selected='selected'";}?>  <? echo $selection2 ?> >午餐</option>
        <option value="3" <?if($detail_at=='3') {$selection3="selected='selected'";}?>  <? echo $selection3 ?> >晚餐</option>
    </select>
</li>



<style>
    .publish .radio-box{ margin: 0; padding: 0}
    .publish .radio-box{ font-size: 12px; overflow: hidden; float: left}
    .publish .radio-box span{ font-size: 14px!important; line-height: 20px;}
    .explain{ font-size: 10px;}

    .detail-boxing-function{ margin-left:110px;}
</style>

    <li class="publish"><label>发布状态：</label>
        <?
        if ($detail_publish == 1) {
            ?>

            <div class='radio-box'>
                <input name='detail_publish' type='radio' value='1' id='publish_now' checked='checked'/>
                <label for='publish_now'><span>立即发布</span></label>
                <input name='detail_publish' type='radio' value='0' id='publish_later'/>
                <label for='publish_later'><span>暂未发布</span></label>
            </div>

            <?
        } else {
            ?>

            <div class='radio-box'>
                <input name='detail_publish' type='radio' value='1' id='publish_now'/>
                <label for='publish_now'><span>立即发布</span></label>
                <input name='detail_publish' type='radio' value='0' id='publish_later' checked='checked'/>
                <label for='publish_later'><span>暂未发布</span></label>
            </div>

            <? ;
        } ?>
        <em class="explain">( <em class="explain">不发布则不可在添加菜式时选择选择</em>)</em>
    </li>



<div class="detail-boxing-function">
    <input type="submit" value="确认"/>
    <input type="button" value="取消"/>
</div>
</form>
</ul>
</div>
</div>

<!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>


<?php include '../../modules/footer.php'; ?>
</body>
</html>